package chat_client;

import java.io.PrintStream;
import java.net.Socket;
import java.util.Scanner;

public class Client
{
    public static void main(String[] args) throws Exception
    {
	Socket socket = new Socket("192.168.51.125", 10000);

	PrintStream exit = new PrintStream(socket.getOutputStream());

	Scanner entry = new Scanner(socket.getInputStream());

	MessageIssuing issuing = new MessageIssuing(exit);

	ChatScreen chatScreen = new ChatScreen(issuing);

	MessageReceptor receptor = new MessageReceptor(entry, chatScreen);

	Thread stack = new Thread(receptor);
	stack.start();
    }
}
